package gpsEngine;

import java.util.*;
import gpsBD.*;
public class Itineraire {
    private String villeDepart;

    private String villeArrivee;

    private String prochaineVille;

    private ArrayList<Integer> listeTroncons;
    private ArrayList<String> listeVilles;
    
	ArrayList<Ville> villes;
	ArrayList<Route> routes;
	ArrayList<Troncon> troncons;
	
	private Donnees donnees;

    public Itineraire() {
    	villes=new ArrayList<Ville>();
    	routes=new ArrayList<Route>();
    	troncons=new ArrayList<Troncon>();    	
    }

    public String getVilleDepart() {
        return villeDepart;
    }

    public void setVilleDepart(String val) {
        this.villeDepart = val;
    }

    public String getVilleArrivee() {
        return villeArrivee;
    }

    public void setVilleArrivee(String val) {
        this.villeArrivee = val;
    }

    public String getProchaineVille() {
        return prochaineVille;
    }

    public void setProchaineVille(String val) {
        this.prochaineVille = val;
    }

    public ArrayList<Integer> getListeTroncons() {
        return listeTroncons;
    }

    public void setListeTroncons(ArrayList<Integer> val) {
        this.listeTroncons = val;
    }

    public void recupererInfosItineraire() {
    	
    	villes = donnees.getArrayVilles(listeVilles);
    	troncons = donnees.getArrayTroncons(listeTroncons);
    	routes = donnees.getArrayRoutes(listeTroncons);
    }

	public ArrayList<String> getListeVilles() {
		return listeVilles;
	}

	public void setListeVilles(ArrayList<String> listeVilles) {
		this.listeVilles = listeVilles;
	}
}
